import fetch from '@/utils/network/fetch'

const getAnswers = (objc) => {
    fetch('/api/knowledge/question_answer', objc)
}

const removeAnswer = (objc) => {
    fetch('/api/knowledge/question_answer/deletion', objc)
}

const replyAnswer = (objc) => {
    fetch(`/api/knowledge/question_answer/${objc.data.id}`, objc)
}

export default {
    getAnswers,
    removeAnswer,
    replyAnswer
}